package com.foton.lotteryinfrastructure.infrastru.dao;

import com.foton.dbrouterstarter.annotation.DBRouter;
import com.foton.dbrouterstarter.annotation.DBRouterStrategy;
import com.foton.lotteryinfrastructure.infrastru.po.UserStrategyExport;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;

/**
 * @Author RenPu
 * @Date 2023/12/12 17:36
 * @Version 1.0
 * @Description: 用户策略计算结果-DAO
 **/
//@DBRouterStrategy
@Mapper
public interface IUserStrategyExportDao {

    /**
     * 新增数据
     * @param userStrategyExport
     */
    @DBRouter(key = "uId")
    void insert(UserStrategyExport userStrategyExport);


    /**
     * 查询数据
     * @param uId
     * @return
     */
    @DBRouter
    UserStrategyExport queryUserStrategyExportByUId(String uId);

    /**
     * 更新发送MQ状态
     * @param userStrategyExport 发送消息
     */
    @DBRouter
    void updateInvoiceMqState(UserStrategyExport userStrategyExport);
}
